package com.park.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.park.entity.Park;
import com.park.mapper.ParkMapper;
import com.park.service.ParkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ParkServiceImpl extends ServiceImpl<ParkMapper, Park> implements ParkService {
    @Resource
    private ParkMapper parkMapper;
    @Override
    public IPage<Park> getByParkCarId(Page<?> page, String carId) {
        return baseMapper.getByParkCarId(page, carId);
    }

    @Override
    public List<Park> getByParkOutTimeIsNull() {
        return baseMapper.getByParkOutTimeIsNull();
    }


}
